An example of a collection with a relatively large number of children that are hidden from the tree.

The tree works well when the notes are structured in a hierarchy so that the number of items stays small. When a note has a large number of notes (in the order of thousands or tens of thousands), two problems arise:

Since v0.102.0, Trilium allows the tree to hide the child notes of particular notes. This works for both Collections and normal notes.

Interaction

When the subtree of a note is hidden, there are a few subtle changes:

Spotlighting

Even if the subtree of a note is hidden, if a child note manages to become active, it will still appear inside the tree in a special state called spotlighted.

During this state, the note remains under its normal hierarchy, so that its easy to tell its location. In addition, this means that:

The note appears in italics to indicate its temporary display. When switching to another note, the spotlighted note will disappear.

Working with collections

By default, some of the Collections will automatically hide their child notes, for example the Kanban Board or the Table.

The reasoning behind this is that collections are generally opaque to the rest of the notes and they can generate a large amount of sub-notes since they intentionally lack structure (in order to allow easy swapping between views).

Some types of collections have the child notes intentionally shown, for example the legacy ones (Grid and List), but also the Presentation which requires the tree structure in order to organize and edit the slides.

To toggle this behavior:

Working with normal notes

It's possible to hide the subtree for normal notes as well, not just collections. To do so, right click the note in the Note Tree and select AdvancedHide subtree.